﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Gedea.Model.Entities
{
    public class User
    {
        #region CommonProperties

        public int UserId {get; set;}

        //NombreCompleto (menor a 100)
        [Required(AllowEmptyStrings = false, ErrorMessage = "The name is required")]
        [StringLength(100, ErrorMessage = "The name for the bank must have less than 100 characters")]
        public string Name { get; set; }

        //NombreEmpresa (para el banco) (16)
        [Required(AllowEmptyStrings = false, ErrorMessage = "The name for the bank is required")]
        [StringLength(16, ErrorMessage = "The name for the bank must have less than 16 characters")]
        public string NameForBank { get; set; }

        //CuitDeLaEmpresa (11)
        [Required(AllowEmptyStrings = false, ErrorMessage = "The cuit of the company is required")]
        [StringLength(11, ErrorMessage = "The cuit of the company must have 11 characters")]
        public string Cuit { get; set; }

        //Prestacion (descripcion de la..) (10)
        [Required(AllowEmptyStrings = false, ErrorMessage = "The benefit is required")]
        [StringLength(10, ErrorMessage = "The benefit must have less than 10 characters")]
        public string Benefit { get; set; }

        ////Identificador (configurable, hoy en 8 dígitos) (22)
        //[Required(AllowEmptyStrings = false, ErrorMessage = "The id for the bank is required")]
        //[StringLength(22, ErrorMessage = "The id for the bank must have less than 22 characters")]
        //public string IdForBank { get; set; }

        #endregion

        #region Settings

        //CodigoInternoBanco (configurable) (siempre 51 por el momento)
        public bool Multibank { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessage = "The name for the bank is required")]
        [StringLength(100, ErrorMessage = "The name for the bank must have less than 100 characters")]
        public int LargoReferenciaUnivDelDev = 8;

        public int RecordsDuration { get; set;}

        #endregion
    }
}
